package STUDENT.TRANDAODAIVI.BASIC.BaiTapCauTruc;
import java.util.Scanner;

public class BT6 {
public static void main(String[] args) {
	Scanner input=new Scanner(System.in);
	System.out.print("Input number: ");
	int k=input.nextInt();
	System.out.print("Input value: ");
	input=new Scanner(System.in);
	String chat=input.nextLine();
	
	
	int i=0,s=0;
	if(chat.equalsIgnoreCase("chan")){
	while (i<=k){
		if(i%2==0){s=s+1;};i++;}
	System.out.println("Tu 0 den "+k+" co "+s+" so chan");
	}
    
    if(chat.equalsIgnoreCase("le")){
    	while (i<=k){
    		if(i%2!=0){s=s+1;};i++;}
    	System.out.println("Tu 0 den "+k+" co "+s+" so le");
    	}
        
}
}
